package cn.sfrog.project.biz.admin.domain;

import cn.sfrog.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
@TableName("biz_user_account")
public class BizUserAccount extends BaseEntity<BizUserAccount>{

    public static final BizUserAccount DAO = new BizUserAccount();

    private static final long serialVersionUID = 1L;


    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;


    /** 用户id */
    private Long userId;


    /** 账户余额 */
    private BigDecimal accountBalance;


    /** 赠送金额 */
    private BigDecimal giveAwayAmount;

    /** 提成金额 */
    private BigDecimal commissionAmount;


    /** 消费金额 */
    private BigDecimal consumeAmount;


    /** 冻结金额 */
    private BigDecimal freezeAmount;


    /** 提现金额 */
    private BigDecimal withdrawAmount;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;
}
